namespace go baidu_rpc.user

struct GetRegisterReq {
    1 : string mobile
    2 : string password
}

struct GetRegisterResp{
    1 : i64 Id
}
struct GetLoginReq {
    1 : string mobile
    2 : string password
}

struct GetLoginResp{
    1 : i64 Id
}

struct LocateByIPReq {
    1 : string passenger_id
    2 : string ip
}

struct LocateByIPResp{
    1 : string address
    2 : i64 lng
    3 : i64 lat
    4 : i32 status
}
struct AddCommonLocationReq {
    1 : string passenger_id
    2 : string address
    3 : string remark
    4 : i64    lat
    5 : i32    status
}

struct AddCommonLocationResp{
    1 : bool success
    2 : string msg

}
struct GetUserListReq {
    1 : i64 page
    2 : i64 size
}
struct GetUserList {
    1 : string mobile
    2 : string password
}

struct GetUserListResp{
    1 : list  <GetUserList> req
}
service  UserService{
    GetRegisterResp GetRegister  (1: GetRegisterReq req)
    GetLoginResp GetLogin  (1: GetLoginReq req)
    LocateByIPResp LocateByIP  (1: LocateByIPReq req)
    AddCommonLocationResp AddCommonLocation  (1: AddCommonLocationReq req)
    GetUserListResp GetUserList  (1: GetUserListReq req)

}